{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "plaintext"
    }
   },
   "source": [
    "# 测试"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "vscode": {
     "languageId": "c++"
    }
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "input_line_8:8:17: error: use of undeclared identifier 'tvm'\n",
      "using namespace tvm::runtime;void __cling_Un1Qu33(void* vpClingValue) {\n",
      "                ^\n"
     ]
    },
    {
     "ename": "Interpreter Error",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "Interpreter Error: "
     ]
    }
   ],
   "source": [
    "#pragma cling add_library_path(\"/media/pc/data/lxw/ai/tvm/build\")\n",
    "#pragma cling load(\"libtvm_runtime.so\") // 需要先加载 TVM 运行时库\n",
    "// #pragma cling add_library_path(\"../cpp/sym_add/outputs/libs\")\n",
    "// #pragma cling load(\"libtvm_ext.so\") // 再加载插件库\n",
    "// #include <tvm/runtime/packed_func.h>\n",
    "// #include <tvm/runtime/registry.h>\n",
    "// #include <tvm/tir/op.h>\n",
    "using namespace tvm::runtime;\n",
    "#pragma cling add_include_path(\"/media/pc/data/lxw/ai/tvm/include\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "vscode": {
     "languageId": "c++"
    }
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "C++14",
   "language": "C++14",
   "name": "xcpp14"
  },
  "language_info": {
   "codemirror_mode": "text/x-c++src",
   "file_extension": ".cpp",
   "mimetype": "text/x-c++src",
   "name": "C++14",
   "version": "14"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
